package com.party.core.dao.read.photo;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.photo.PhotosImgInfo;
import com.party.core.model.photo.PhotosImgInfoWithResource;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: yangshoukun
 * @Date: 2018/5/29 18:08
 */
@Repository
public interface PhotosImgInfoReadDao extends BaseReadDao<PhotosImgInfo> {
    List<PhotosImgInfoWithResource> listPageByTag(@Param("tagId") String tagId, @Param("photosImgInfo") PhotosImgInfo photosImgInfo,
                                                  @Param("params") Map<String, Object> params, Page page);

    List<Map<String, String>> listTimeLine(@Param("photosId") String photosId, Page page);

    Integer getCount(@Param("photosId") String photosId, @Param("tagId") String tagId);

    List<PhotosImgInfoWithResource> listTimeLineData(@Param("takeTime") String takeTime,
                                                     @Param("photosId") String photosId,
                                                     @Param("params") Map<String, Object> params,
                                                     Page page);

    PhotosImgInfo getImgInfo(@Param("id") String id);

   List<PhotosImgInfo> queryThirdImgList(@Param("memberId")String memberId,@Param("ids")List<String> ids);
}
